// 获取专家详细
export function getExpertDetail<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/specialist/getInfo',
    data,
    requestType: 'bl',
  })
}
// 咨询记录
export function getChatLogsList<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/specialist/getChatLogs',
    data,
    requestType: 'bl',
  })
}

// 删除动态
export function delDongtai<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/post/delete',
    method: 'POST',
    data,
    requestType: 'bl',
  })
}
// 获取专家结算余额
export function getbalance<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/specialist/balance',
    method: 'POST',
    data,
    requestType: 'bl',
  })
}

// 新增专家咨询
export function addChatLogs<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/specialist/addChatLog',
    method: 'POST',
    data,
    requestType: 'bl',
  })
}

// 动态分页列表，专家说数据
export function getExpertSayList<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/specialist/postList',
    data,
    requestType: 'bl',
  })
}

// 用户动态详细信息
export function getExpertSayInfo<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/post/getInfo',
    data,
    requestType: 'bl',
  })
}

// 相关推荐
export function getRelativeRecommend<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/post/randList',
    data,
    requestType: 'bl',
  })
}

// 社区专家入驻
export function expertRuzhu<T>(data?: any) {
  return uni.http<T>({
    url: '/sq/specialist/apply',
    method: 'POST',
    data,
    requestType: 'bl',
  })
}

// 社区专家入驻列表
export function expertRuzhuList<T>(data?: any) {
  return uni.http<T>({
    url: 'ch/specialistInviteLog',
    data,
    requestType: 'bl',
  })
}

// 评论点赞
export function zanComment<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/post/zan',
    method: 'POST',
    data,
    requestType: 'bl',
  })
}

// 评论收藏
export function collectComment<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/post/collect',
    method: 'POST',
    data,
    requestType: 'bl',
  })
}

// 评论分享
export function shareComment<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/post/addShareNum',
    method: 'POST',
    data,
    requestType: 'bl',
  })
}

// 获取全部评论
export function getAllCommentList<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/post_comment/pageList',
    data,
    requestType: 'bl',
  })
}

// 创建评论
export function addComment<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/post_comment/create',
    method: 'POST',
    data,
    requestType: 'bl',
  })
}

// 动态举报
export function jubaoComment<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/post/report',
    method: 'POST',
    data,
    requestType: 'bl',
  })
}

// 获取擅长分类
export function getCategoryTreeApi<T>(data?: any) {
  return uni.http<T>({
    url: 'sq/common/categoryTree',
    data,
    requestType: 'bl',
  })
}

// 本周专家留言
export function expertSendMsg<T>(data?: any) {
  return uni.http<T>({
    url: 'ch/activity/sendMsg',
    method: 'POST',
    data,
    requestType: 'bl',
  })
}
